#include <stdio.h>

#include <devices/led.h>

int
	main(
		void)
{
	struct leddev *dev;

	dev = leddev_construct();
	if (dev == NULL) {
		printf("leddev_construct error\n");
		return -1;
	}

	while (1) {
		int i;	

		for (i = 0; i < 6; i++) {
			leddev_on(dev, i);
			usleep(100000);
			leddev_off(dev, i);
			usleep(100000);
		}
	}

	return 0;
}
